sh4 support
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sun, 28 Sep 2025 16:50:00 +0000 (18:50 +0200)
committerSantiago Vila <sanvila@debian.org>
Sun, 28 Sep 2025 16:50:00 +0000 (18:50 +0200)
commit1501dc27bec6a6c9b00e8fdc7b0e29a4760fb645
tree078ddc3d50dc6a49e94d97f247f3bd6ee06610e2
parent6390a99ba87897df170285a4ec9f6de52914e609
sh4 support

Forwarded: not yet.
BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027168

onetbb currently FTBFS on sh4 because the source code assumes that the target
FPU supports all four rounding modes (FE_TONEAREST, FE_DOWNWARD, FE_UPWARD and
FE_TOWARDZERO) which is not the case on sh4 which supports FE_TONEAREST and
FE_TOWARDZERO only [1].

The attached patch fixes these assumptions for sh4 and makes the code build. I
have already patched and uploaded the package to the unreleased distribution
so that the mold linker can build on sh4 as well.

I will forward the patch later after reformating it.
===================================================================

Gbp-Pq: Name sh4-support.patch
test/common/fp_control.h